package com.ruoyi.project.system.service.impl;

import com.ruoyi.project.system.domain.SysDoctor;
import com.ruoyi.project.system.mapper.SysDoctorMapper;
import com.ruoyi.project.system.service.ISysDoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class SysDoctorServiceImpl implements ISysDoctorService {

    @Autowired
    private SysDoctorMapper sysDoctorMapper; // 修正：命名规范，加sys前缀区分

    /**
     * 按科室查询所有医生（基础信息，不含值班状态）
     * 注意：此方法查的是sys_doctor表所有医生，不区分是否值班
     */
    @Override
    public List<SysDoctor> selectDoctorByDept(String department) {
        return sysDoctorMapper.selectDoctorByDept(department);
    }

    /**
     * 查询所有医生基础信息
     */
    @Override
    public List<SysDoctor> selectAllDoctor() {
        return sysDoctorMapper.selectAllDoctor();
    }
}